from 属性赋值学习 import Car
from 学习装饰器 import Car1


class ElectricCar1(Car1):
    electric: float

class ElectricCar(Car):
    def change_speed(self):
        print("换档操作")


car = ElectricCar("BYD", "秦L", "2024")
car.get_detail()

car.driver(100)
car.get_detail()

e_car = ElectricCar1("BYD", "秦L", "2024", 18.9)
print(e_car)
